package org.example.intelligent_education.service;

import org.example.intelligent_education.mapper.TeacherMapper;
import org.example.intelligent_education.model.TeacherInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TeacherService {
    @Autowired
    private TeacherMapper teacherMapper;
    public TeacherInfo getTeacherInfo(String tname){
        return teacherMapper.getTeacherInfo(tname);
    }

    public Integer insertCourseSource(int cid, String url, String rname){
        return teacherMapper.insertCourseSource(cid,url,rname);
    }
}
